package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;

/**
 *出入库记录表
 * @author zhangli
 * @date 2016年4月1日 上午9:58:41
 */
@TableMapperAnnotation(tableName = "t_goods_stock_record", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id")
public class GoodsStockRecord extends Domain{
	private static final long serialVersionUID = 4178996028162534134L;
	
	/**
	 * 
	 */
	@FieldMapperAnnotation 
	Integer id;
	/**
	 * 小区id
	 */
	@FieldMapperAnnotation 
	Integer relativeId;
	/**
	 * 出入库数量
	 */
	@FieldMapperAnnotation 
	Double amount;
	/**
	 * 商品id
	 */
	@FieldMapperAnnotation 
	Integer goodsId;
	/**
	 * 商品名称
	 */
	@FieldMapperAnnotation 
	String goodsName;
	/**
	 * 本次入库时商品价格
	 */
	@FieldMapperAnnotation 
	Double goodsOldPrice;
	/**
	 * 本次入库时折扣价格
	 */
	@FieldMapperAnnotation 
	Double goodsDisPrice;
	/**
	 * 状态 1正常 2禁用
	 */
	@FieldMapperAnnotation 
	Integer state;
	/**
	 *补货方式  1 平台配货  2 用户需购
	 */
	@FieldMapperAnnotation 
	Integer status;
	/**
	 * 
	 */
	@FieldMapperAnnotation 
	Long createTime;
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * @return the relativeId
	 */
	public Integer getRelativeId() {
		return relativeId;
	}
	/**
	 * @return the amount
	 */
	public Double getAmount() {
		return amount;
	}
	/**
	 * @return the goodsId
	 */
	public Integer getGoodsId() {
		return goodsId;
	}
	/**
	 * @return the goodsName
	 */
	public String getGoodsName() {
		return goodsName;
	}
	/**
	 * @return the goodsDisPrice
	 */
	public Double getGoodsDisPrice() {
		return goodsDisPrice;
	}
	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}
	/**
	 * @return the createTime
	 */
	public Long getCreateTime() {
		return createTime;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @param relativeId the relativeId to set
	 */
	public void setRelativeId(Integer relativeId) {
		this.relativeId = relativeId;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	/**
	 * @param goodsId the goodsId to set
	 */
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	/**
	 * @param goodsName the goodsName to set
	 */
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	/**
	 * @param goodsDisPrice the goodsDisPrice to set
	 */
	public void setGoodsDisPrice(Double goodsDisPrice) {
		this.goodsDisPrice = goodsDisPrice;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	/**
	 * @return the goodsOldPrice
	 */
	public Double getGoodsOldPrice() {
		return goodsOldPrice;
	}
	/**
	 * @param goodsOldPrice the goodsOldPrice to set
	 */
	public void setGoodsOldPrice(Double goodsOldPrice) {
		this.goodsOldPrice = goodsOldPrice;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

}
